<%@ page language="java"%>
<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<html>

  <head>
    <html:base/>
    <link rel="stylesheet" type="text/css" href="../css/table.css">
	<script src="../js/util.js"></script>
    <title></title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
  </head>
    <body>
    <form action="../doc_manage.do"  method="post">	
	<input type="hidden" name="act" value="listall">
	<input type="hidden" name="sql" value="<%=request.getAttribute("sql")%>"/>
	<input type="hidden" name="id"  />
<!--
    <table width="200" border="0" cellspacing="0" cellpadding="0">
	  <tr> 
	    <td width="90"><img src="../images/loc-head.jpg" width="90" height="24"></td>
	    <td valign="middle" nowrap background="../images/loc-bg.jpg">文档管理--文档维护</td>
	    <td width="12"><img src="../images/loc-tail.jpg" width="12" height="24"></td>
	  </tr>
	</table>
	<br>
	-->
    <table border="0" width="100%" cellpadding=0 cellspacing=0>
    <tr>
		    <td background="../images/tb-bg.jpg" width="14" height="22">
		    	<img src="../images/tb-head.jpg" width="14" height="28">
		    </td>
			<td background="../images/tb-bg.jpg" width="120">
		    	<img src="../images/btn-search.jpg" width="104" height="21" border="0" onclick="window.location='doc_manage/doc_search.jsp';" style="cursor:hand;">&nbsp;
		    </td>   
		    <td background="../images/tb-bg.jpg" width="100%" align="right">
		    	<img src="../images/tb-tail.jpg" width="14" height="28">
		    </td>			
	</tr>
    <tr><td colspan="100">
    
      <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
		<tr>    

			<th align="center" width="30%">
			 文件名

			</th>
			<th >
			 操作用户

			</th>
			<th >
			 修改时间

			</th>
			<th width="40" >
			 下载
			</th>
			
			<th width="40">
			  删除
			</th>
		</tr>
     	<logic:iterate id="PrjForm" name="sl">
		  <tr style=" width:100%; background-color:white" onMouseover="this.style.backgroundColor='#FFFFCC';" onMouseout="this.style.backgroundColor='white';">

			<td >  			  
			  <bean:write name="PrjForm" property="file_name" filter="true"/>			  
			</td>
			<td >  			  
			  <bean:write name="PrjForm" property="modifier" filter="true"/>			  
			</td>
			<td align="center">			
			    <bean:write name="PrjForm" property="update_date_s" filter="true"/>			
			</td>

			    <td align="center" width="40">
       <html:link page="/doc_manage/download_file.jsp" paramId="id" paramName="PrjForm" paramProperty="id">
				 
       <img src="../images/download.gif" alt="下载文档" border=0>
       </html:link>
       </a>
    </td>
			<td align="center" width="40">
				<html:link page="/doc_manage.do?act=delete" paramId="id"
				 paramName="PrjForm" paramProperty="id" onclick="return confirm('你确定要删除吗?')">
				 <image src="../images/delete.gif" alt="删除" border=0>
				</html:link>
			</td>

		  </tr>
        </logic:iterate>

    	<tr><th colspan="99" height="28">
    		<table width="98%" border="0" cellspacing="0" cellpadding="0">
	    		<tr><td>
					  	<image src="../images/frist.jpg" alt="首页" border=0 style="cursor:hand" onclick="javascript:doPagging('1');">
		              	<image src="../images/pre.jpg"   alt="上页" border=0 style="cursor:hand" onclick="javascript:doPagging('<%=request.getAttribute("prepage")%>');">
		              	<image src="../images/next.jpg"  alt="下页" border=0 style="cursor:hand" onclick="javascript:doPagging('<%=request.getAttribute("nextpage")%>');">
		             	<image src="../images/last.jpg"  alt="末页" border=0 style="cursor:hand" onclick="javascript:doPagging('<%=request.getAttribute("totalpage")%>');">
	           </td><td  align="right" nowrap>
	             共<%=request.getAttribute("totalpage")%> 页
	             第<%=request.getAttribute("curpageno")%>页
	             跳转到第<input type="text" id="pageno" name="pageno" maxlength="10" size="3" value=<%=request.getAttribute("curpageno")%> onkeypress="enterInt()"> 页
	             <img src="../images/tb-search.jpg" onclick="document.forms(0).submit();" width="21" height="17" border="0" style="cursor:hand">
	             &nbsp;&nbsp;
	             <!--input type='submit' value="Go"-->  
	           </td></tr>       
      	   </table> 
		</th></tr>
		
      </table>  
      
 	</td></tr></table>   
    </form>
  </body>
</html>
<script language="JavaScript">
    	// Only enter Int   onkeypress="enterInt()"
    	function enterInt()    	
		{ 
		  if ((event.keyCode < 48 || event.keyCode > 57) && !(event.keyCode==13))
		  { 
		  	alert("只能输入数字!");
		    event.returnValue = false;
		  }
		}
</script>
